package service

import (
	"fmt"
	"go-admin/models"
)

type QualityService struct {
	BaseDao
}

func (e *QualityService) InsetBatch(data *[]models.Quality) error {
	dbs := e.db.GetDB("A")
	err := dbs.Create(&data).Error
	if err != nil {
		fmt.Printf("批量插入quality数据失败: %s", err)
		return err
	}
	return nil
}
